home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
- <!-- All rights reserved. -->
- <!DOCTYPE xsl:stylesheet [
- <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
- ]>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="album">
- <xsl:apply-templates select="imagelist"/>
- </xsl:template>
- <xsl:template match="imagelist">
- <xsl:apply-templates select="imageinfo"/>
- </xsl:template>
- <xsl:template match="imageinfo">
- <xsl:element name="ixfile">
- <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <head>
-
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
-
- </head>
-
-
- <BODY text="#ffffff" background="textures/bktexture11.gif">
-
- <table border="2" align="center"><tr><td><table bgcolor="000000" border="0" cellpadding="0" cellspacing="0" width="800" align="center">
- <tr>
- <td><img src="graphics/shim.gif" width="80" height="1" border="0"/></td>
- <td><img src="graphics/shim.gif" width="640" height="1" border="0"/></td>
- <td><img src="graphics/shim.gif" width="80" height="1" border="0"/></td>
- <td><img src="graphics/shim.gif" width="1" height="1" border="0"/></td>
- </tr>
-
- <tr valign="top"><!-- row 1 -->
- <td background="graphics/background_r1_c1.jpg" valign="middle"><div align="center"><xsl:apply-templates select="previous"/></div></td>
- <td background="graphics/background_r1_c2.jpg" valign="bottom"><div align="center"><font face="Arial, Helvetica, sans-serif" size="4" ><b><xsl:value-of select="title"/></b></font></div> </td>
- <td background="graphics/background_r1_c3.jpg" valign="middle"><div align="center"><xsl:apply-templates select="next"/></div></td>
- <td><img src="images/shim.gif" width="1" height="80" border="0"/></td>
- </tr>
- <tr valign="top"><!-- row 2 -->
- <td><img name="background_r2_c1" src="graphics/background_r2_c1.jpg" width="80" height="481" border="0"/></td>
- <td valign="middle" background="graphics/tdbkground.jpg"><div align="center"> <IMG border="1"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
- <td><img name="background_r2_c3" src="graphics/background_r2_c3.jpg" width="80" height="481" border="0"/></td>
- <td><img src="images/shim.gif" width="1" height="480" border="0"/></td>
- </tr>
- <tr valign="top"><!-- row 3 -->
- <td background="graphics/background_r3_c1.jpg" valign="top"><div align="right"><xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="right"><xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div></xsl:otherwise>
- </xsl:choose><xsl:choose>
- <xsl:when test="movie_info/@fname[. != '']">
- <div align="right"><xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose></div></td>
- <td background="graphics/background_r3_c2.jpg"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:apply-templates select="description">
- <!-- recursively apply this template to them -->
- <xsl:template>
- <xsl:copy>
- <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:apply-templates></font></div><br kludge=""/></td>
- <td><img name="background_r3_c3" src="graphics/background_r3_c3.jpg" width="80" height="80" border="0"/></td>
- <td><img src="images/shim.gif" width="1" height="80" border="0"/></td>
- </tr>
-
- </table></td></tr></table>
-
-
- </BODY>
-
- </xsl:element>
- </xsl:template>
- <xsl:template match="audio_info">
- <xsl:if match="audio_info[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/sound.gif"/></A>
- </xsl:if>
- </xsl:template>
- <xsl:template match="movie_info">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
- </xsl:template>
- <xsl:template match="previous">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="previous[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img src="buttons/pointleft.gif" border="0"/></A>
- </xsl:when>
- <xsl:otherwise>
- <img src="graphics/transparenth120.gif" width="1" height="1" border="0"/>
-
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="next">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="next[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img src="buttons/pointright.gif" border="0"/></A>
- </xsl:when>
- <xsl:otherwise>
- <img src="graphics/transparenth120.gif" width="1" height="1" border="0"/>
- </xsl:otherwise>
- </xsl:choose>
-
-
- </xsl:template>
- </xsl:stylesheet>
-